// 查找类似跳转代码
if(window.location.href.indexOf('http') === 0) {
    window.location.href = 'index.html';
}